package com.ruoyi.msg.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 题库选项业务对象 msg_dcwj_tk_xx
 *
 * @author xiaohao
 * @date 2023-02-01
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MsgDcwjTkXxBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 题库id
     */
    @NotNull(message = "题库id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long tkId;

    /**
     * 是否默认
     */
    @NotBlank(message = "是否默认不能为空", groups = {AddGroup.class, EditGroup.class})
    private String init;

    /**
     * 选项内容（选项内容/单项填空提示/多项填空模板）
     */
    @NotBlank(message = "选项内容（选项内容/单项填空提示/多项填空模板）不能为空", groups = {AddGroup.class, EditGroup.class})
    private String content;

    /**
     * 选项类型
     */
    @NotBlank(message = "选项类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String type;

    /**
     * 得分
     */
    @NotNull(message = "得分不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer score;

    /**
     * 排序（字母选项）
     */
    @NotBlank(message = "排序（字母选项）不能为空", groups = {AddGroup.class, EditGroup.class})
    private String sort;


}
